# 普通参数
# def say_hi(name):
#     print(f'hello,{name}')
#     print('欢迎来到大熊课堂')
#
# say_hi('JackMa')

# def create_window(width,height):
#     print(f'窗口的宽是{width};高是{height}')
#
# create_window(2,1)

# 默认参数
# def total(hour,salary=8):
#     print(f'今天的薪水是{hour*salary}元')
#
# total(8,10)

# 关键字参数
# def student(firstname,lastname):
#     print(f'firstanme is {firstname};lastname is {lastname}')
#
# student('andy','Feng')
# student(lastname='Feng',firstname='andy') # 关键字匹配

# 不定长参数
# 一个*表示不定长入参元祖； 两个**表示关键字参数的赋值
def my_function(width,height,*args,**kwargs):
    print(width)
    print(height)
    print(args)
    print(kwargs)
    # for arg in args:
    #     print(arg)
    # for key,value in kwargs.items():
    #     print(f'{key}->{value}')

my_function(2.3,4.5,'hello','welcome','to','daxiong','thankyou',lastname='Feng',firstname='andy')




